/**
 * 
 */
package giftmail.netty;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelPipelineCoverage;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.channel.SimpleChannelHandler;

	/**
	 * @author Administrator
	 * 注解标示一个处理器是否可被多个Channel共享
	 * 没有处理任何有状态的信息
	 */

@ChannelPipelineCoverage("all")
public class DiscardServerHandler extends SimpleChannelHandler {

	/**
	 *  处理内部异常
	 */
	@Override
	public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
		e.getCause().printStackTrace();
		super.exceptionCaught(ctx, e);
	}

	/**
	 * 接收client传来的数据
	 */
	@Override
	public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
		
		super.messageReceived(ctx, e);
	}

}
